<?php
/*
 * notes:
 *   this tpl master submodule form
 *
 * if clone as another one, below tags need to be replace to ur target module tag
 * "clean_up_qc_form"
 */
$moduleName   = $invokeParams['moduleName'];
$subItemModuleName   = $invokeParams['subItemModuleName'];
$formDialogId = WacModuleHelper::getFormDialogId($invokeParams['subItemModuleName']);
$formId       = WacModuleHelper::getFormId($invokeParams['subItemModuleName']);
echo "<div id=\"".$formDialogId."\" class=\"ui-widget\" style=\"display: none\" >\n\n";

echo "<script type=\"text/javascript\" src=\"/js/backend/{$invokeParams['subItemModuleName']}/".WacControlTableType::$moduleSubForm.".js\">";
echo "</script>";
?>
<!-- form, begin-->
<form action="#" name="<?php echo $formId;?>" id="<?php echo $formId;?>" method="post" class="wacFormA">
    <div class="wacFormFirstCol" style="margin-right: 1px; width: 350px;">
        <h3>
        <?php
        echo $invokeParams['caption'];
        ?>
        </h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft">生产单号</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $subItemModuleName ?>_production_order_code"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft ">整理单号</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $subItemModuleName ?>_clean_up_form_code"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">QC单号</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $subItemModuleName ?>_clean_up_qc_form_code"></div>
               </div>
               <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">品种</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $subItemModuleName ?>_goods_category_name"></div>
               </div>
               <div class="wacFormClear"></div>
            </div>
    </div>
</div>
    <div class="wacFormSecondCol">
        <h3>&nbsp;</h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft">横缩</div>
                <div class="wacFormItemRight">
                    <input name="horizontal_shrink" id="<?php echo $subItemModuleName ?>_horizontal_shrink" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">直缩</div>
                <div class="wacFormItemRight">
                    <input name="vertical_shrink" id="<?php echo $subItemModuleName ?>_vertical_shrink" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">拉斜</div>
                <div class="wacFormItemRight">
                    <input name="is_beveled" id="<?php echo $subItemModuleName; ?>_is_beveled" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">布幅</div>
                <div class="wacFormItemRight">
                    <input name="roll" id="<?php echo $subItemModuleName ?>_roll" type="text" class="validate[required,custom[onlyDigit]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">布幅单位</div>
                <div class="wacFormItemRight">
                    <select name="roll_unit_code" id="<?php echo $subItemModuleName ?>_roll_unit_code" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">PH值</div>
                <div class="wacFormItemRight">
                    <input name="ph_value" id="<?php echo $subItemModuleName ?>_ph_value" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
        </div>

    </div>
    
    <div class="wacFormClear"></div>
    <div class="wacFormBottom" align="center">
        <hr class="wacFormRuler" style="width:750px; float:inherit;" />
        <div class="wacFormRow">
        </div>
        
   <div class="wacFormClear"></div>
      <input name="btnSubmit" id="<?php echo $subItemModuleName ?>_btnSubmit" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="提交" />
      &nbsp;&nbsp;
      <input name="btnClose" id="<?php echo $subItemModuleName ?>_btnClose" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="关闭" />
    </div>

    <input type="hidden" name="id" id="<?php echo $subItemModuleName ?>_id" value="0">
    <input type="hidden" name="clean_up_qc_form_id" id="<?php echo $subItemModuleName ?>_clean_up_qc_form_id" value="0">
</form>
<!-- form, end-->
<?php echo "</div>"; ?>